# -*- coding: utf-8 -*-
#                                  _oo8oo_
#                                 o8888888o
#                                 88" . "88
#                                 (| -_- |)
#                                 0\  =  /0
#                               ___/'==='\___
#                             .' \\|     |# '.
#                            / \\|||  :  |||# \
#                           / _||||| -:- |||||_ \
#                          |   | \\\  -  #/ |   |
#                          | \_|  ''\---/''  |_/ |
#                          \  .-\__  '-'  __/-.  /
#                        ___'. .'  /--.--\  '. .'___
#                     ."" '<  '.___\_<|>_/___.'  >' "".
#                    | | :  `- \`.:`\ _ /`:.`/ -`  : | |
#                    \  \ `-.   \_ __\ /__ _/   .-` /  /
#                =====`-.____`.___ \_____/ ___.`____.-`=====
#                                  `=---=`
#
#
#               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
#                          强大爷保佑         永不宕机/永无bug
# -*- coding: utf-8 -*-
# @Date     : 2024/11/25
# @summary  : 
# @Author   : JackieChan

from pydantic import BaseModel, Field


class PageBase(BaseModel):
    page: int = Field(default=1, description="")
    size: int = Field(default=20, description="")


class AdminBaseBody(BaseModel):
    username: str = Field(default=..., description="账号")
    password: str = Field(default=..., description="密码")
    code: str = Field(default=None, description="验证码")


class LoginBody(AdminBaseBody):
    """ 登录 """


class RegisterBody(AdminBaseBody):
    """ 注册 """
    confirmPassword: str = Field(..., description="确认密码")
    mobile: str = Field(..., description="手机号")
    nickname: str = Field(..., description="昵称")
